<?php
/**
 * Kornak
 *
 * LICENSE
 *
 * This source file is subject to the new BSD license that is bundled
 * with this package in the file LICENSE.txt.
 * It is also available through the world-wide-web at this URL:
 * http://www.kornak-framework.org/license/new-bsd
 * If you did not receive a copy of the license and are unable to
 * obtain it through the world-wide-web, please send an email
 * to contact@kornak-framework.org so we can send you a copy immediately.
 *
 * @category   Kornak
 * @package    Kornak_Controller
 * @copyright  Copyright (c) 2008-2009 Kornak Group (http://www.kornak-framework.org/)
 * @version    $Id: Action.php 167 2009-07-23 18:19:49Z jmf@durcommefaire.net $
 */

require_once 'Kornak/Application.php';

/**
 * @deprecated Deprecated since version 0.2
 */
class Kornak_Controller_Action extends Zend_Controller_Action
{
    protected $_application;

    public function init()
    {
        parent::init();

        $moduleName = $this->getRequest()->getModuleName();
        $this->_helper->layout->setLayout($moduleName . '/views/layouts/main');

        $this->_application = Kornak_Application::getInstance();
    }
}